 |
 |
 |
 |
#313540 - 03/14/07 05:34 PM
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3)
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
Instead of continuing to completely hijack the other thread, and post additions everywhere but the initial post; here's the thread for my Embedding BBCode additions. 7.3 Update - Due to the "Custom Tags" option added in 7.3 these can be added much easier, without having to hack code. Please see the following links: [7.3+] Gizmo's Embedding BBCode (Compatibility) (compatibility with the codes below in 7.3) [7.3+] Gizmo's CustomTags (My new custom tags thread for all things 7.3+) Installation:Open: libs/ubbthreads.inc.phpFind: // You don't see the next line
array( "#\[email=([+_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))\](.+?)\[/email]#i", '<a href="mailto:\1">\5</a>' ),
Add After (choose any you wish, this is my added block from my site):
// Gizmo's Added UBBCode
array( "#\[google\]([a-zA-Z0-9 ]+)\[/google\]#i", '<a href="http://www.google.com/custom?domains=www.undergroundnews.com&q=\1&sa=Search&sitesearch=&client=pub-5168900358893374&forid=1&channel=4984299912&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%238CA3D6%3BGL%3A1%3BDIV%3A%23666666%3BVLC%3A8CA3D6%3BAH%3Acenter%3BBGC%3A000000%3BLBGC%3A000000%3BALC%3AC0C0C0%3BLC%3AC0C0C0%3BT%3AFFFFFF%3BGFNT%3A8CA3D6%3BGIMP%3A8CA3D6%3BFORID%3A1&hl=en" target="_new">\1</a>' ),
array( "#\[googlevideo\]([a-zA-Z0-9-_]+)\[/googlevideo\]#i", '<center><embed style="width:425px; height:350px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\1&hl=en"></embed></center>' ),
array( "#\[googleimages\]([a-zA-Z0-9 ]+)\[/googleimages\]#i", '<a href="http://images.google.com/images?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-17,GGGL:en&q=\1" target="_new">\1</a>' ),
array( "#\[froogle\]([a-zA-Z0-9 ]+)\[/froogle\]#i", '<a href="http://froogle.google.com/froogle?q=\1C&btnG=Search+Froogle" target="_new">\1</a>' ),
array( "#\[pricegrabber\]([a-zA-Z0-9 ]+)\[/pricegrabber\]#i", '<a href="http://www.pricegrabber.com/search_getoffers.php?keyword=\1" target="_new">\1</a>' ),
array( "#\[youtube\]([a-zA-Z0-9-_]+)\[/youtube\]#i", '<center><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></center>' ),
array( "#\[break\]([a-zA-Z0-9-_]+)\[/break\]#i", '<center><object width="425" height="350"><param name="movie" value="http://embed.break.com/\1"></param><embed src="http://embed.break.com/\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center>' ),
array( "#\[yahoovideo\]([a-zA-Z0-9-_]+).([a-zA-Z0-9 ]+)\[/yahoovideo\]#i", '<center><embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="id=\2&emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D\1.\2%26cache%3D1&imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253F%2526ei%253DUTF-8%2526vid%253D\1.\2%2526cache%253D1&imTitle=TreehuggerTV%253A%2BFreshtopia%2BTakes%2Bthe%2BLong%2BTrain&searchUrl=http://video.yahoo.com/video/search?p=&profileUrl=http://video.yahoo.com/video/profile?yid=&creatorValue=YmlwZWRiaXBlZA%3D%3D&vid=\1.\2" type="application/x-shockwave-flash" width="425" height="350"></embed></center>' ),
array( "#\[myspace\]([a-zA-Z0-9 ]+)\[/myspace\]#i", '<a href="http://www.myspace.com/\1" target="_new">\1</a>' ),
array( "#\[myspacevideo\]([a-zA-Z0-9-_]+)\[/myspacevideo\]#i", '<center><embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\1&type=video" type="application/x-shockwave-flash" width="425" height="350"></embed></center>' ),
array( "#\[loowa\]([a-zA-Z0-9@.]+)\[/loowa\]#i", '<a href="http://www.loowa.com/profile.php?email=\1" target="_new">\1</a>' ),
array( "#\[loowavideo\]([a-zA-Z0-9-_]+)\[/loowavideo\]#i", '<center><embed src="http://update.videoegg.com/flash/player8.swf?jsver=1.3" FlashVars="file=http%3A//selfserve1.download.videoegg.com/gid353/cid1208/CZ/PW/1169094106KzyWvMT0WVB7S74rN6a2&bgColor=000000&autoPlay=false&showAd=false&adVars=&pageURL=http%3A//www.loowa.com/video/\1&allowFlash9Fullscreen=true" quality="high" allowFullScreen="true" allowScriptAccess="always" bgcolor="#000000" scale="noscale" wmode="window" width="425" height="350" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></center>' ),
array( "#\[revver\]([a-zA-Z0-9-_]+)\[/revver\]#i", '<center><embed type="application/x-shockwave-flash" src="http://flash.revver.com/player/1.0/player.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noScale" salign="TL" bgcolor="#ffffff" flashvars="mediaId=\1&affiliateId=64082" wmode="transparent" height="350" width="425"></embed></center>' ),
array( "#\[wiki\]([a-zA-Z0-9 ]+)\[/wiki\]#i", '<a href="http://en.wikipedia.org/wiki/\1" target="_new">\1</a>' ),
array( "#\[description\](.+?)\[/description\]#i", '<b>Description</b>: \\1' ),
array( "#\[desc\](.+?)\[/desc\]#i", '<b>Description</b>: \\1' ),
array( "#\[photobucket\]([a-zA-Z0-9-_/:.]+)\[/photobucket\]#i", '<center><object width="425" height="350"><embed type="application/x-shockwave-flash" wmode="transparent" src="http://w33.photobucket.com/pbwidget.swf?pbwurl=\1" height="350" width="425"></embed></object></center>' ),
array( "#\[podcast\]([a-zA-Z0-9-_.&:/]+)\[/podcast\]#i", '<center><embed src="http://www.undergroundnews.com/forum/addons/mp3player.swf" width="425" height="42" bgcolor="#000000" quality="low" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=\1&autostart=false&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xFFFFFF" /></center>' ),
array( "#\[webcam\]([a-zA-Z0-9-_]+)\[/webcam\]#i", '<center><embed src="http://player.stickam.com/stickamPlayer/\1" type="application/x-shockwave-flash" width="480" height="210" allowScriptAccess="always"></embed></center>' ),
array( "#\[pbucket\]([a-zA-Z0-9-_.:/]+)\[/pbucket\]#i", '<center><embed width="425" height="350" type="application/x-shockwave-flash" wmode="transparent" src="http://vid68.photobucket.com/player.swf?file=\1"></embed></center>' ),
array( "#\[skype\]([a-zA-Z0-9-_]+)\[/skype\]#i", '<a href="skype:\1?call"><img src="http://mystatus.skype.com/bigclassic/\1" style="border: none;" width="182" height="44" alt="My status" /></a>' ),
array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="\2" height="\1"><param name="movie" value="\3"></param><embed src="\3" type="application/x-shockwave-flash" width="\2" height="\1"></embed></object></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="425" height="350"><param name="movie" value="\1"></param><embed src="\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center>' ),
array( "#\[liveleak\]([a-zA-Z0-9_]+)\[/liveleak\]#i", '<center><object type="application/x-shockwave-flash" width="425" height="350" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token=\1"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token=\1"><param name="wmode" value="transparent"><param name="quality" value="high"></object></center>' ),
array( "#\[sdeluxe\]([a-zA-Z0-9]+)\[/sdeluxe\]#i", '<center><object width="425" height="350"><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.superdeluxe.com/static/swf/share_vidplayer.swf" /><param name="FlashVars" value="id=\1" /><embed src="http://www.superdeluxe.com/static/swf/share_vidplayer.swf" FlashVars="id=\1" type="application/x-shockwave-flash" width="425" height="350" allowFullScreen="true" ></embed></object></center>' ), Usage:[google]Search Criteria[/google]
[googlevideo]VideoID[/googlevideo]
[googleimages]Search Criteria[/googleimages]
[froogle]Search Criteria[/froogle]
[pricegrabber]Search Criteria[/pricegrabber]
[youtube]VideoID[/youtube]
[break]VideoID[/break]
[yahoovideo][/yahoovideo]
[myspace]UserID[/myspace]
[myspacevideo]VideoID[/mypacevideo]
[loowa]UserID[/loowa]
[loowavideo]VideoID[/loowavideo]
[revver]VideoID[/revver]
[wiki]Wiki Criteria[/wiki]
[description]Desctiption Data[/description]
[desc]Description Data[/desc]
[photobucket]EmbedURL[/photobucket]
[podcast]http://www.url.to/podcast.mp3[/podcast]
[webcam]StickamID[/webcam]
[pbucket]PhotoBucketVideoURL[/pbucket]
[skype]SkypeID[/skype]
[flash]height, width, URL[/flash]
[flash]URL[/flash]
[liveleak]VideoID[/liveleak]
[sdeluxe]VideoID[/sdeluxe] Others:Spoiler TagsDaily MotionNOTE:- The [podcast] tag requires the MP3 flash file inserted into your /libs directory; this file is available here. Please note that you'll also need to insert the URL to this file in the bbcode entry.
- For support on the Spoiler Tags bbcode, please go here as it has its own page.
- To see why there is the description/desc tags, please see here.
- The PhotoBucket Video code requires the videoURL from the embed link on photobucket, you can't use the "link to this page" link as it does not give the video data to embed the video.
Markup Panel Note: The text attached shows you how to add an option to your markup panel (the graphic goes in images/markup_panel/ and should be named "vidembed.gif"); it took a while to get everything to mesh well, but I think it should work fine. The only options in here (for now) is the Video Embedding options, and it prompts the user to enter a description for their video (so search engines or impaired users can actually tell what it is as they can have issues viewing videos)... On another note, do you like my video embed graphic? Licensing Notice: I hereby grant exclusive access over the attached image(s) to UBB.Central and UBB.Dev and their userbase to be used only within the UBB (and any UBB addon's or scripts). No other usage is approved. Attachment Information: 2475.gif - vidembed.gif vidembedmarkuppanel.txt - The markup panel addon WITH the description tag added into the javascript prompts (recommended as Search Engines and Visually Impaired users cannot SEE the video, the reader can read a description of the video; higly recommended especially if you rely on search engine traffic). vidembedmarkuppanel2.txt - The markup panel addon WITHOUT the description tag added into the javascript prompts (the above is recommended, this is provided for those who don't want the description tag for whatever reason).
Attachments
vidembedmarkuppanel.txt (68 downloads) vidembedmarkuppanel2.txt (48 downloads)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#314661 - 07/10/07 04:31 AM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Gizmo]
|
Power User
Registered: 11/15/03
Posts: 86
Loc: UK
|
Yep all working now  used ALL of the code from the first post  Part of my problem was a video i was testing? OTl8ySlr4Qw&eurl Ive no idea where the &eurl came from as in i dont know. So that was causing me problems as it was the correct format. With &eurl removed the extra and positioning now all works. Centred and previewing fine  OTl8ySlr4Qw I'm now using all the codes posted in the first post  Thanks for the reply's.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#314917 - 07/23/07 06:53 PM
Re: [7.x] Gizmo's Embedding BBCode
[Re: sirdude]
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315090 - 08/07/07 11:23 AM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Gizmo]
|
Power User
Registered: 11/15/03
Posts: 86
Loc: UK
|
If you use the youtube tags its ok if you use the myspacevideo tags its not? This is feedback and what i mean is that the Active Topic List goes behind the myspace videos but the youtube ones seem fine? Even the Rate topic and the other drop menus get hidden behind the myspacevideo video. Its a qwerk but i thought i would mention it if ricks throwing this into 7.3 
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315287 - 08/19/07 05:12 AM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Gizmo]
|
Power User
Registered: 11/15/03
Posts: 86
Loc: UK
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315408 - 08/24/07 11:40 PM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Gizmo]
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
Just for mark: /* Start Gizmo's Video Embedding Options */
if (action == "break") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[break]" + thisVideo + "[/break]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "googlevideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[googlevideo]" + thisVideo + "[/googlevideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "liveleak") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[liveleak]" + thisVideo + "[/liveleak]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "loowavideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[loowavideo]" + thisVideo + "[/loowavideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "myspacevideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[myspacevideo]" + thisVideo + "[/myspacevideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "revver") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[revver]" + thisVideo + "[/revver]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "sdeluxe") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[sdeluxe]" + thisVideo + "[/sdeluxe]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "yahoovideo") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[yahoovideo]" + thisVideo + "[/yahoovideo]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
if (action == "youtube") {
var thisVideo = prompt(enterVideo, "");
if (thisVideo == null){return;}
insertAtCaret(document.replier.Body, "\n[youtube]" + thisVideo + "[/youtube]\n" );
document.replier.texteditor.focus();
showHideElement('vembed', 'hide');
return;
}
/* End Gizmo's Video Embedding Options */Simply replace the section in the js file and you'll no longer be prompted for a description.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316042 - 10/18/07 05:57 PM
Re: [7.x] Gizmo's Embedding BBCode
[Re: sirdude]
|
Power User
Registered: 11/15/03
Posts: 86
Loc: UK
|
Does anyone have a .FLV player For UBB ? let me explain. With the numerous sites out there that will convert your own movies to *.flv files like what You Tube Does. Many of my members are using these site to compress there video's into .flv files and now are asking if our own forums can show them, if there uploaded. Summary I'm after a .FLV player to work like you tube and such. So we can show video's with the embedded screen. Any Help or Advice Appreciated 
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316045 - 10/19/07 06:35 AM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Mark_S]
|
Power User
Registered: 11/15/03
Posts: 86
Loc: UK
|
Seems the first one is a bit buggy. Ca Ching flew over my head lol Got this one to work with out too much difficulty http://www.jeroenwijering.com/?item=JW_FLV_PlayerReading this http://www.jeroenwijering.com/extras/readme.html<Edit> Wow just found a wizard to make it easy http://www.jeroenwijering.com/extras/wizard.htmlFull Reply HTML Selected And pasting in the Embedded Code Changing the path to the Files i uploaded And the File on my server i want to play. Its clunky but works, not as simple a Gizmo's Embedded stuff but for keeping a archive it should do me fine  But what do you want for free lol Ive probably gone round the world to do something simple if you find a easier way or not as clunky please share 
Edited by Mark_S (10/19/07 06:55 AM) Edit Reason: added wizard link
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316410 - 11/30/07 12:25 AM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Billy Mead]
|
Lurker
Registered: 10/22/07
Posts: 4
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316417 - 12/02/07 08:42 PM
Re: [7.x] Gizmo's Embedding BBCode
[Re: Gizmo]
|
Lurker
Registered: 10/22/07
Posts: 4
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316868 - 04/12/08 06:52 PM
Re: [7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3)
[Re: Morley]
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
Yeh, simply take the current: array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="\2" height="\1"><param name="movie" value="\3"></param><embed src="\3" type="application/x-shockwave-flash" width="\2" height="\1"></embed></object></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="425" height="350"><param name="movie" value="\1"></param><embed src="\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center>' ), And change it to be: array( "#\[flash\]([0-9]+), ([0-9]+), ([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="\2" height="\1"><param name="movie" value="\3"></param><param name="autostart" value="false"></param><embed src="\3" type="application/x-shockwave-flash" width="\2" height="\1"></embed></object></center>' ),
array( "#\[flash\]([a-zA-Z0-9-_.&:/]+)\[/flash\]#i", '<center><object width="425" height="350"><param name="movie" value="\1"></param><param name="autostart" value="false"></param><embed src="\1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center>' ), The param addition should do the job for you  .
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316870 - 04/13/08 03:38 PM
Re: [7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3)
[Re: Gizmo]
|
Lurker
Registered: 04/11/08
Posts: 2
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|